﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WebApplication2.EntityFrameWork;
using static LBCMS.EntityFrameWork.ClassExtraAttribute;
using System.ComponentModel;

namespace LBCMS.EntityFrameWork.FrameModel
{
    [DisplayName("嘉宾")]
    public class TW_Guest
    {
        [Key, DisplayName("嘉宾ID")]
        public int id { get; set; }

        [DisplayName("姓名"), MaxLength(20), Required, ShowInList]
        public string gName { get; set; }

        [DisplayName("密码"), MaxLength(50)]
        public string passWord { get; set; }

        [DisplayName("手机号码"), MaxLength(20), Required]
        public string tel { get; set; }

        [DisplayName("性别"), ShowInList]
        public short sex { get; set; }

        [DisplayName("职务"), MaxLength(50)]
        public string post { get; set; }

        [DisplayName("简介"), MaxLength(300)]
        public string profile { get; set; }

        [DisplayName("联系人"), MaxLength(20), ShowInList]
        public string contact { get; set; }

        [DisplayName("联系人电话"), MaxLength(20)]
        public string contactTel { get; set; }

        [DisplayName("嘉宾分类"), CodeName("嘉宾分类"), ShowInList]
        public int gType { get; set; }

        [DisplayName("排序号")]
        public int serialNo { get; set; }

    }
}